package vo;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Orders implements Serializable {

	private String oId;
	private Merchant merchant;
	private Client client;
	private Date dt;
	List<OrderItems> orderItems = new ArrayList<OrderItems>();
	private int ograde;
	private int status;// 0 wait 1 already 2 refuse
	private int receive;// 0 not confirm 1 confirm
	private String complain;

	public Orders() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Orders(Merchant merchant, Client client, Date dt,
			List<OrderItems> orderItems) {
		super();
		this.merchant = merchant;
		this.client = client;
		this.dt = dt;
		this.orderItems = orderItems;
	}

	public Orders(String oId, Merchant merchant, Client client, Date dt,
			List<OrderItems> orderItems) {
		super();
		this.oId = oId;
		this.merchant = merchant;
		this.client = client;
		this.dt = dt;
		this.orderItems = orderItems;
	}

	public String getoId() {
		return oId;
	}

	public void setoId(String oId) {
		this.oId = oId;
	}

	public Merchant getMerchant() {
		return merchant;
	}

	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}

	public Client getClient() {
		return client;
	}

	public void setClient(Client client) {
		this.client = client;
	}

	public Date getDt() {
		return dt;
	}

	public void setDt(Date dt) {
		this.dt = dt;
	}

	public List<OrderItems> getOrderItems() {
		return orderItems;
	}

	public void setOrderItems(List<OrderItems> orderItems) {
		this.orderItems = orderItems;
	}

	public int getOgrade() {
		return ograde;
	}

	public void setOgrade(int ograde) {
		this.ograde = ograde;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public int getReceive() {
		return receive;
	}

	public void setReceive(int receive) {
		this.receive = receive;
	}

	public String getComplain() {
		return complain;
	}

	public void setComplain(String complain) {
		this.complain = complain;
	}

}
